package com.wf.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wf.dao.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface TagMapper extends BaseMapper<Tag> {
    /**
     * SELECT id, avatar, tag_name as tagName
     * FROM ms_tag
     * WHERE id IN (SELECT tag_id FROM ms_article_tag WHERE article_id = [articleId]);
     */
    List<Tag> findTagsByArticleId(Integer articleId);
}
